<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>


<style type="text/css">
<!--
#style {
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: none;
	border-right-style: solid;
	border-bottom-style: none;
	border-left-style: solid;
	border-top-color: #F96;
	border-right-color: #F96;
	border-bottom-color: #F96;
	border-left-color: #F96;
	background:#FFF;
}
-->
</style>
</head>

<body>
<form action="cart/addcart.php" method="post" name="giohang">
<table id="style" width="530" >
  <?php require_once("connect/dbcon.php");
  $idMay=$_GET["idMay"];
  $s="select * from may where idMay=$idMay";
  $kq=mysql_query($s,$link);
  while($d=mysql_fetch_array($kq))
  	{
		$idMay = $d['idMay'];
		$Gia = $d['Gia'];
		$UrlHinh = $d['UrlHinh'];
		$TenMay  = $d['TenMay'];

  	
  ?>
  <tr>
    <td><img src="images/product/<?php echo $d["UrlHinh"];?>" /></td>
  <td>	<h3>Blackberry
	  <?php echo $d["TenMay"];?></h3><br/><br/>
            Mã Sản Phẩm : <?php echo $d["idMay"];?><br/><br/>
            <?php echo $d["ThongTin"];?><br/><br/>
            Giá :<font color="#FF0000"><?php echo number_format($d["Gia"]);?></font> VND<br />
            <input name="idMay" type="hidden" id="idMay" value="<?php echo $idMay;?>">
      <input name="Gia" type="hidden" id="Gia" value="<?php echo $Gia;?>">
      <input name="UrlHinh" type="hidden" id="UrlHinh" value="<?php echo $UrlHinh;?>">
      <input name="SoLuong" type="text" id="SoLuong" >
      <input name="dm" type="submit" id="dm" value="Đặt mua">
    
      
    </td>
  </tr>

<?php }?>
</table>
</form>

</body>
</html>